package com.example.teesystem.entityDto;

import com.example.teesystem.common.utils.TimeUtil;
import com.example.teesystem.entity.WrongSet;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;


/**
 * @author : NieYaShi
 * @version : v1.0
 * @createTime : 2022/4/7 15:13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WrongSetList {

    private Integer id;

    private Integer issueId;

    private Integer studentId;

    private Integer num;

    private String uploadTime;

    private IssueMessage issueMessage;

    public WrongSetList(WrongSet wrongSet){
        BeanUtils.copyProperties(wrongSet,this);
        this.uploadTime = TimeUtil.dateToString(wrongSet.getUploadTime());
    }
}
